#if OPENSSL_WINRT_DESKTOP || OPENSSL_WINRT_PHONE

#include "rand_winrt.h"
#include "RandomManager.h"

void RAND_GenerateRandomBytes(BYTE* randBuffer, int length)
{
	RandomManager* randomManager = RandomManager::GetRandomManager();
	randomManager->GenerateRandomBytes(randBuffer, length);
}

int RAND_GenerateRandomNumber()
{
	RandomManager* randomManager = RandomManager::GetRandomManager();
	return randomManager->GenerateRandomNumber();
}

#endif	//OPENSSL_WINRT_DESKTOP || OPENSSL_WINRT_PHONE
